<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/2010admin/Check_IsLogin.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<!--#include virtual="/2010admin/Common/Query_List_GetSQL.asp"-->
<!--#include virtual="/2010admin/Check_Priv.asp"-->

<%
'==========================================
'**********	Modify  Start  ****************
dim TITLE,DISPFILD,PAGESIZE,SQL,HV
dim AddLabel,addURL,delURL,editURL,detailURL,detailURLsn
TITLE="家政企业列表"
DISPFILD="Corp_Name<企业名称,Corp_Tel<电话,Corp_Fax<传真,Corp_Address<地址,Corp_Gold_Flag_S<加盟会员,Corp_Audit_S<审核,Update_Name<更新人,Update_Date<更新日期"
PAGESIZE="20"
HV="H"

AddLabel="增加商家信息"
addURL="Corp_Info_AE.asp"
delURL="Corp_Info_Del.asp"
editURL="Corp_Info_AE.asp"
detailURL_target="_blank"
detailURLsn=1


'其他子操作列表 以#分隔
'Other_Title = "图库"
'Other_Url   = "Info_Pic_Query.asp"

'置顶排序分类
Sort_Name="家政企业"


'设置置顶文件
Set_Top_URL = "Corp_Info_Set_Top.asp"

'排序操作文件
Sort_Url 	= "Corp_Info_Sort.asp"

Sort_Title  = "排序"


sql = "SELECT ID AS Info_ID,Corp_Name,Corp_Tel,Corp_Fax,Corp_Address,Update_Name,Update_Date"&_
	  ",CASE Corp_Audit "&_
	  " WHEN 1 THEN '是' " &_
	  " WHEN 0 THEN '否' " &_
      " END AS Corp_Audit_S, " &_
	  "	CASE Corp_Gold_Flag "&_
	  " WHEN 1 THEN '是' " &_
	  " WHEN 0 THEN '否' " &_
      " END AS Corp_Gold_Flag_S " &_

	  " FROM Corp_Info WHERE 1=1  "

Info_Title		= reform("Info_Title")
Big_ID			= reform("Big_ID")
Corp_Type		= reform("Corp_Type")

sql = LikeSql("Corp_Name",Info_Title,sql)
sql = EqualSql("Corp_Type",Corp_Type,sql)
'sql = EqualSql("BT_ID",BT_ID,sql)
'sql = EqualSql("Info_IsTop",Info_IsTop,sql)

sql = sql &" ORDER BY Update_Date DESC "

'**********	Modify  Stop  *****************
'==========================================

If Request.form("previous")="上一页" Then PageNo=request.form("PageNo")-1
If Request.form("next")="下一页" Then PageNo=request.form("PageNo")+1
If Request.form("GotoPageNo")<>"" Then PageNo=request.form("GotoPageNo")
If Request.form("GotoPageNo2")<>"" Then	PageNo=request.form("GotoPageNo2")
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=Title%></title>
<link href="/2010admin/css/constyle.css" type="text/css" rel="stylesheet">
</head>
<script language="javascript" src="/js/jquery.js"></script>
<script language="javascript" src="/2010admin/js/function.js"></script>
<script language="javascript" src="js/corp_info.js"></script>
<body>
<div id="s-content" class="show">
<form method="post" name="form">
<div class="s-hd">
		<div class="s-hd-left">
		<span class="title"><strong><%=TITLE%></strong></span> <span class="ii"> | </span> <span class="inavs"><%if addURL<>"" then%><a href="<%=addURL%>"><%=AddLabel%></a><%end if%><% If Sort_Title<>"" Then %><span class="ii"> | </span><a href="<%=Sort_URL%>"><%=Sort_Title%></a><% End If %></span>
        </div>
        <div class="s-hd-right"><label>企业名称:</label> <input name="Info_Title" class="itxt" id="Info_Title" Value="<%=Info_Title%>" style="width:160px;"> <label>大类:</label> <% AjaxSelected_BySql "Big_ID","SELECT ID,Corp_Type_Name FROM Corp_Type WHERE Parent_ID=0 ORDER BY Corp_Order ASC","全部",Big_ID,"BigType_Change()" %> <label>小类:</label> <select name="Corp_Type" id="Corp_Type" style="width:120" >
    <option value="">全部</option>
</select> <input type="submit" value="搜索" name="search">
            </div>
    </div>
    <div class="s-bd">
	<%
		IF NOT Query_List_GetSQL(DISPFILD,SQL,PAGESIZE,HV,delURL,editURL,detailURL,detailURLsn) THEN
		Response.Write "<div id=""err"">程序执行错误！请与系统管理员联系！</div>"
		END If
    %>
    </div>
<%
Call conn_close()
%>
</form>
</div>

<script language="javascript">
<!--
var IT_ID='<%=IT_ID%>';
BigType_Change();
//-->
</script>

</body>
</html>
